package com.benhil.hrms.server.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.benhil.hrms.server.domain.SimplePojo;

@Controller
public class GreetingController {

	@RequestMapping(value = "**/hello", method = RequestMethod.GET, produces="application/json")
	@ResponseBody
	public SimplePojo sayHello(){
		return new SimplePojo("Ujang", "Benhil");
	}
}
